/*
Copyright DAUPHIN Maxime 2005

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
http://www.gnu.org/licenses/gpl.txt
*/

#include "Image.h"
#include "Dc.h"

namespace Gui {

Image::Image(void)
{
	m_className = TEXT("STATIC");
	m_windowName = TEXT("Empty");
	m_style = WS_CHILD | WS_VISIBLE | WS_BORDER | SS_OWNERDRAW;
	m_x = 50;
	m_y = 50;
	m_width = 50;
	m_height = 100;
}

Image::~Image(void)
{
}

int Image::paint()
{
	Dc dc(this);
	dc.fillRect( getClientRect(), Color(255,0,0) );
	return 0;
}

} //namespace Gui
